/**
 * description:开发环境webpack配置文件
 * author:
 * date:2020/04/01
 * */
let webpackBase = require("./webpack.config.base");
let utils = require("./utils");
let config = require("./config");
let merge = require('webpack-merge');

module.exports = merge(webpackBase, {
    module: {
        rules: [
            ...utils.generatorStyleLoaders({cssSourceMap: config.cssSourceMap, extract: false})
        ]
    },
    devtool: 'eval-source-map',
    devServer: {
        ...config.devServer
    },
});
